// ****************************************************************************
// *     Filename:  MySD.hh
// *  Description:  Sensitive detector
// *      License:  Geant4 Software License 
// *                http://geant4.cern.ch/license/LICENSE.html
// *       Author:  Tran Hoai Nam (nam), nam@kuno-g.phys.sci.osaka-u.ac.jp
// * Organization:  Osaka University
// *      Created:  2012-09-14 13:03:34
// ****************************************************************************

#ifndef MYSD_R54QPJNT
#define MYSD_R54QPJNT

#include "G4VSensitiveDetector.hh"
#include "MyHit.hh"

class G4HCofThisEvent;
class G4TouchableHistory;
class G4Step;
class MySD : public G4VSensitiveDetector {
	public:
		MySD (const G4String& name);
		~MySD ();

		virtual void Initialize(G4HCofThisEvent* hitsCollectionOfThisEvent);
		virtual G4bool ProcessHits(G4Step* aStep,G4TouchableHistory* history);
		virtual void EndOfEvent(G4HCofThisEvent* hitsCollectionOfThisEvent);

	private:
		MyHitsCollection 	*fpHC;
		G4int							fHCID;	
		G4double					fEdep;

};
#endif /* end of include guard: MYSD_R54QPJNT */
